<?php
	$local = false;
	
	if ($local) {
		$hostname_conexao = "localhost";
		$database_conexao = "bagulho_db";
		$username_conexao = "root";
		$password_conexao = "";
		$conexao = mysql_pconnect($hostname_conexao, $username_conexao, $password_conexao) or trigger_error(mysql_error(),E_USER_ERROR); 	
	} else {
		$hostname_conexao = "mysql.hostinger.com.br";
		$database_conexao = "u837783377_bagulho";
		$username_conexao = "u837783377_user";
		$password_conexao = "aquelasenhala1";
		$conexao = mysql_pconnect($hostname_conexao, $username_conexao, $password_conexao) or trigger_error(mysql_error(),E_USER_ERROR); 		
	}
	
	mysql_query("SET NAMES 'utf8'");
	mysql_query('SET character_set_connection=utf8');
	mysql_query('SET character_set_client=utf8');
	mysql_query('SET character_set_results=utf8');
?>